/**
 * Created by gl on 2017/4/15.
 */
public class YouPiao {
    public static void main(String[] args){
        for(double x=0;x<=350;x++){
            double y =350-x;
            if (2*x+5*y==1000){
                System.out.println("鸡的个数："+x);
                System.out.println("兔子的个数："+y);
            }
        }
    }
}
